﻿using System;
using System.Data;
using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class PCBAUnion
    {
        private static readonly IPCBAUnion dal = DALFactory.DataAccess.CreatePCBAUnion();

        public bool PCBAUnionItem_Insert(PCBAUnionInfo asi, DataTable itemdt)
        {
            return dal.PCBAUnionItem_Insert(asi, itemdt);
        }

        public IList<PCBAUnionInfo> GetPCBAUnionbySN(string productSN)
        {
            return dal.GetPCBAUnionbySN(productSN);
        }

        public IList<PCBAUnionInfo> GetPCBAUnionsbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetPCBAUnionsbyDT(starttime, stoptime);
        }
    }
}
